import request from '@/utils/request'

class devService {

  //设备列表带分页条件
  select(params) {
    return request({
      url: '/equipment/select',
      method: 'post',
      data: params
    })
  }

  //设备列表所有
  list(params) {
    return request({
      url: '/equipment/list',
      method: 'get',
      data: params
    })
  }
  //设备添加
  add(params) {
    return request({
      url: '/equipment/add',
      method: 'post',
      data: params
    })
  }
  //设备获取根据id
  get(params) {
    return request({
      url: '/equipment/get',
      method: 'get',
      data: params
    })
  }
  //设备更新保存
  update(params) {
    return request({
      url: '/equipment/update',
      method: 'POST',
      data: params
    })
  }
  //设备删除
  del(params) {
    return request({
      url: '/equipment/del',
      method: 'post',
      data: params
    })
  }

}

export default new devService()